<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="kr.cadis.clms.dao.PersonDao, kr.cadis.clms.model.Person, java.util.List" %>    
<%
	PersonDao personDao = new PersonDao();
	List<Person> persones = personDao.selectAll();
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1">
	<tr><th>사원번호</th><th>이름</th><th>삭제</th><th>출타 관리</th></tr>
<%
	for(Person person : persones) {
%>	
	<tr>
		<td><%= person.getNo() %></td>
		<td><%= person.getName() %></td>
		<td><a href="Delete.jsp?no=<%= person.getNo() %>">삭제</a></td>
		<td><a href="/CLMSWeb/JSP/Absence/List.jsp?noPerson=<%= person.getNo() %>">출타 관리</a></td>
	</tr>
<%
	}
%>	
</table>
<br />
<a href="Insert.jsp">신규 등록</a><br />
<a href="/CLMSWeb/index.jsp">처음화면으로 돌아가기</a>
</body>
</html>